package base_entity

import (
	"time"

	"gorm.io/gorm"
)

type BaseEntity struct {
	CreateTime time.Time      `gorm:"<-:create;autoCreateTime" json:"create_time"`
	Creator    int64          `gorm:"column:creator" json:"creator"`
	UpdateTime time.Time      `gorm:"autoUpdateTime" json:"update_time"`
	Updater    int64          `gorm:"column:updater" json:"updater"`
	DeletedAt  gorm.DeletedAt `gorm:"index" json:"deleted_at"`
}
